class paiXu {
    paiXuFun = (Array: any, page: any, size: any) => {
        let sortedArray = Array.sort((a: any, b: any) => {
            return a.id - b.id;
        });
        let xuhaos:any = page == 1 ? 1 : (page-1)*size+1
        sortedArray.forEach((element: any) => {
            element['xuHao'] = xuhaos++
        });
        return sortedArray
    }

}

export default paiXu